<?php

require_once("../../class2.php");
require_once("./includes/require_all.php");
$user_id = USERID;
$user_name = USERNAME;
$page_class = "PlayON"; //Key for non-users

if(isset($_GET['game']) and isset($_GET['name']) and isset($_GET['page']) and check_class($page_class)){
	$game_name = $database->escape_value($_GET['game']);
	$file_name = $database->escape_value($_GET['name']);
	$file_page = $database->escape_value($_GET['page']);
	mysql_query("insert into cms_checked (game_name, file_name, file_page) values ('$game_name', '$file_name', '$file_page')");
	redirect_to("edittext.php?game=$game_name&name=$file_name&page=$file_page");
}

?>